package com.livesource.client.webservices;

import com.livesource.client.model.entry.ProjectClass;
import com.livesource.client.model.project.Project;
import com.livesource.client.utilities.FileExtensions;
import com.livesource.client.webservices.subversion.RequestSubversionFileContent;

public class GetFileContent {

	public GetFileContent(ProjectClass projectEntry, Project project,
			String username, String password) {

		if (FileExtensions.isTextFile(projectEntry.getFileExtension())) {

			if (Project.REPOSITORY_TYPE_SUBVERSION.equals(project
					.getRepositoryType())) {

				RequestSubversionFileContent.getJsonpRequest(
						project.getRepositoryURL(), projectEntry.toString(),
						username, password);

			}
		}
	}
}
